#ifndef LOGINREQUEST_H
#define LOGINREQUEST_H

#include "network/networkgetjsonrequest.h"


class QVariant;
namespace Network {
class JSONResponse;
}

class LoginResponse;
class LoginRequest : public Network::GetJSONRequest
{
    Q_OBJECT
public:
    explicit LoginRequest(const QString &user,
                          const QString &password);
    virtual ~LoginRequest();

private:
    LoginResponse *m_response;
    QString m_user;
    QString m_password;

private:
    Network::JSONResponse &jsonResponse();

public:
    const Network::JSONResponse &jsonResponse() const;
    QUrl url() const;
};

#endif // LOGINREQUEST_H
